package cn.proj.service;

import cn.proj.dao.UserDao;
import cn.proj.domain.UserBean;

public class UserService {

	public UserBean login(UserBean user) {
		UserDao daoLogin = new UserDao();
		UserBean userLogin = daoLogin.userLogin(user);
		return userLogin;
	}
	
	public boolean isExist(UserBean user) {
		UserDao query = new UserDao();
		return query.isExist(user);
	}
	
	public int insertUser (UserBean user) {
		UserDao update = new UserDao();
		return update.insertUser(user);
	}
}
